﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DAL.Classes;

public partial class QuanLy_UserControl_ThongKeBaiDang : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            PopulateControls();
        }
    }

    private void PopulateControls()
    {
        Label1.Text = BaiDang.DemBaiDangTheoTheLoai("1").ToString();
        Label2.Text = BaiDang.DemBaiDangTheoTheLoai("2").ToString();
        Label3.Text = BaiDang.DemBaiDangTheoTrangThai("1").ToString();
        Label4.Text = BaiDang.DemBaiDangTheoTrangThai("2").ToString();
    }
}
